package org.wang.generalcode.modules.sys.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户和角色关联表实体类
 *
 * @author wz
 * @since 2024-08-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户和角色关联表")
@TableName("sys_user_role")
public class UserRole implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* 用户ID
	*/
	@Schema(description = "用户ID")
	private Long userId;
	/**
	* 角色ID
	*/
	@Schema(description = "角色ID")
	private Long roleId;


}
